package com.example.sxt_practise.集合;

/**
 * @author gaofeng
 * @date 2022年05月12日 21:38
 */
public class LinkedListTest {
    public static void main(String[] args) {

//        LinkedList
//        Vector

        LinkedListTest myLinkedList = new LinkedListTest() ;
        myLinkedList.add("a") ;
        myLinkedList.add("b") ;
        myLinkedList.add("c") ;

    }


    private Node first ;
    private Node last ;
    private Integer size ;

    private boolean add(Object obj) {

        Node node = new Node(obj) ;
        if (first == null) {
            first = node ;
            last = node ;
        } else {
            last.nexe = node ;
            node.previous = last ;
        }
        size ++ ;

        return true ;
    }
}
